package com.ltu.util.common;

import java.util.List;

public class StrFromArray {
public static  int[]   strToArry(String  str){
	String[] strArry = str.split(",");
  int[]	array = new int[strArry.length];
	for (int i = 0; i < strArry.length; i++) {
		array[i] = Integer.parseInt(strArry[i]);
	}
	return  array;
}
public static String arrayToStr(List list, char separator) {  
	
	return org.apache.commons.lang.StringUtils.join(list.toArray(),separator);    }

public static String arrayToStr(List list, String separator) {  
	
	return org.apache.commons.lang.StringUtils.join(list.toArray(),separator);    }
}
